查询门店主体匹配结果
查询门店主体匹配结果。该接口允许服务商查询之前发起的门店主体匹配批次结果,包括各门店统一社会信用代码是否存在满足条件的微信支付商户号。通过此接口可获取匹配结果详情,确认哪些门店可以使用企业支付功能。
请求参数 | 类型 | 描述 |
---|---|---|
batch_id | string | 微信支付主体匹配批次单号 |
query | object | 声明请求的查询参数 |
sp_mchid | string | 服务商商户号 |
php
$instance->v3->webizpay->stores->entityMatches->_batch_id_->getAsync([
'batch_id' => '1030000071201xxxxx',
'query' => [
'sp_mchid' => '12341234',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/webizpay/stores/entity-matches/{batch_id}')->getAsync([
'batch_id' => '1030000071201xxxxx',
'query' => [
'sp_mchid' => '12341234',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/webizpay/stores/entity-matches/{batch_id}']->getAsync([
'batch_id' => '1030000071201xxxxx',
'query' => [
'sp_mchid' => '12341234',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->webizpay->stores->entityMatches->_batch_id_->get([
'batch_id' => '1030000071201xxxxx',
'query' => [
'sp_mchid' => '12341234',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/webizpay/stores/entity-matches/{batch_id}')->get([
'batch_id' => '1030000071201xxxxx',
'query' => [
'sp_mchid' => '12341234',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/webizpay/stores/entity-matches/{batch_id}']->get([
'batch_id' => '1030000071201xxxxx',
'query' => [
'sp_mchid' => '12341234',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
sp_mchid | string | 服务商商户号 |
out_batch_id | string | 商户主体匹配批次单号 |
batch_id | string | 微信支付主体匹配批次单号 |
state | string | 批次状态ACCEPTED | IN_PROGRESS | COMPLETED | CLOSED 枚举值之一 |
match_results | object[] | 主体匹配明细列表 |
organization_code | string | 门店统一社会信用代码 |
store_name | string | 门店名称 |
has_valid_mchid | boolean | 是否存在满足条件微信支付商户号 |
参阅 官方文档